﻿<UserControl x:Class="FullDayStrategyPlugin.CustomDataParameters"
			 x:ClassModifier="internal"
			 
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             
             xmlns:Converters="clr-namespace:Utils.Wpf.Converters;assembly=Utils" Background="#1F1F1F"
             
             mc:Ignorable="d"
             
             d:DesignHeight="130" 
             d:DataContext="{d:DesignInstance Type=FD2:CustomDataParametersVM}" >

	<UserControl.Resources>
		<ResourceDictionary>
			
			<ResourceDictionary.MergedDictionaries>
				<ResourceDictionary Source="pack://application:,,,/Plugins;component/PluginTheme.xaml" />
			</ResourceDictionary.MergedDictionaries>
		</ResourceDictionary>
	</UserControl.Resources>
	<Grid>
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="Auto" />
		</Grid.ColumnDefinitions>
		<Grid.RowDefinitions>
			<RowDefinition Height="*" />
			<RowDefinition Height="*" />
			<RowDefinition Height="*" />
			<RowDefinition Height="*" />
			<RowDefinition Height="*" />
		</Grid.RowDefinitions>

		<TextBlock Grid.Row="0" Grid.Column="0" Text="Custom Data" HorizontalAlignment="Center" VerticalAlignment="Center" x:Name="Header" Margin="6" />
		<CheckBox Grid.Row="1" Grid.Column="0" Content="Generate Daily Chart" IsChecked="{Binding GenerateDailyChart}" VerticalAlignment="Center" >
			<CheckBox.ToolTip>
				<StackPanel>
					<TextBlock Foreground="Black" FontWeight="Bold" Text="Daily Chart" />
					<TextBlock Foreground="Black" Text="When enabled the plugin will create a chart for each day with the Bid/Ask and the operations done. It can be time / memory expensive." />
				</StackPanel>
			</CheckBox.ToolTip>
		</CheckBox>
		<CheckBox Grid.Row="2" Grid.Column="0" Content="Only Operated Days" IsChecked="{Binding ChartsOnlyOnOperatedDays}" VerticalAlignment="Center" IsEnabled="{Binding GenerateDailyChart}" >
			<CheckBox.ToolTip>
				<StackPanel>
					<TextBlock Foreground="Black" FontWeight="Bold" Text="Daily Chart" />
					<TextBlock Foreground="Black" Text="The chart will be generated only on days with operations. Useful when lot of days don't have operations." />
				</StackPanel>
			</CheckBox.ToolTip>
		</CheckBox>
	</Grid>
</UserControl>
